#if !defined(AFX_SOCKETREGISTER_H__99576447_9B29_4BE7_9ED9_78B0B58AFB77__INCLUDED_)
#define AFX_SOCKETREGISTER_H__99576447_9B29_4BE7_9ED9_78B0B58AFB77__INCLUDED_

#include "Struct.h"	// Added by ClassView

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SocketRegister.h : header file
//



/////////////////////////////////////////////////////////////////////////////
// CSocketRegister command target

class CSocketRegister : public CAsyncSocket
{
	friend unsigned int  AFX_CDECL RegisterThread( void* pvParams );

// Attributes
public:

// Operations
public:
	CSocketRegister();
	virtual ~CSocketRegister();

// Overrides
public:
	void Stop();
	BOOL Start();
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSocketRegister)
	//}}AFX_VIRTUAL

	// Generated message map functions
	//{{AFX_MSG(CSocketRegister)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

// Implementation
protected:

private:
	BOOL m_blStop;
	CWinThread* m_pRegisterThread;

//	COMMAND m_CMDRegister;
	CString m_strRegister;

	BOOL m_blWantToExit;
	HANDLE m_evtThreadExited;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SOCKETREGISTER_H__99576447_9B29_4BE7_9ED9_78B0B58AFB77__INCLUDED_)
